// samsting : this file is auto create.

#include "Rds_Region/2014-08-15/DescribeAccountsResponse.h"

namespace aliyun { namespace Rds_Region {

DescribeAccountsResponse::DescribeAccountsResponse() {
}

const string& DescribeAccountsResponse::DBInstanceAccount::DatabasePrivilege::GetDBName(void) const {
  return DBName_;
}

const string& DescribeAccountsResponse::DBInstanceAccount::DatabasePrivilege::GetAccountPrivilege(void) const {
  return AccountPrivilege_;
}

const std::vector<DescribeAccountsResponse::DBInstanceAccount::DatabasePrivilege>& DescribeAccountsResponse::DBInstanceAccount::GetDatabasePrivileges(void) const {
  return DatabasePrivileges_;
}

const string& DescribeAccountsResponse::DBInstanceAccount::GetDBInstanceId(void) const {
  return DBInstanceId_;
}

const string& DescribeAccountsResponse::DBInstanceAccount::GetAccountName(void) const {
  return AccountName_;
}

const string& DescribeAccountsResponse::DBInstanceAccount::GetAccountStatus(void) const {
  return AccountStatus_;
}

const string& DescribeAccountsResponse::DBInstanceAccount::GetAccountDescription(void) const {
  return AccountDescription_;
}

const std::vector<DescribeAccountsResponse::DBInstanceAccount>& DescribeAccountsResponse::GetAccounts(void) const {
  return Accounts_;
}

const char* DescribeAccountsResponse::BaseKey(void) {
  return "DescribeAccountsResponse";
}

void DescribeAccountsResponse::UnmarshallerMap(std::map<string, string>& response_map) {
  int Accounts__length = 0;
  UnmarshallerInt(Accounts__length, response_map, "DescribeAccountsResponse.Accounts.Length");
  if(Accounts__length >= 0) {
    Accounts_.resize(Accounts__length);
    for(int i1 = 0; i1 < Accounts__length; i1++) {
      int Accounts_i1_DatabasePrivileges__length = 0;
      UnmarshallerInt(Accounts_i1_DatabasePrivileges__length, response_map, "DescribeAccountsResponse.Accounts[+"+string_ValueOfInt(i1)+"].DatabasePrivileges.Length");
      if(Accounts_i1_DatabasePrivileges__length >= 0) {
        Accounts_[i1].DatabasePrivileges_.resize(Accounts_i1_DatabasePrivileges__length);
        for(int i2 = 0; i2 < Accounts_i1_DatabasePrivileges__length; i2++) {
          UnmarshallerString(Accounts_[i1].DatabasePrivileges_[i2].DBName_, response_map, "DescribeAccountsResponse.Accounts[+"+string_ValueOfInt(i1)+"].DatabasePrivileges["+string_ValueOfInt(i2)+"].DBName");
          UnmarshallerString(Accounts_[i1].DatabasePrivileges_[i2].AccountPrivilege_, response_map, "DescribeAccountsResponse.Accounts[+"+string_ValueOfInt(i1)+"].DatabasePrivileges["+string_ValueOfInt(i2)+"].AccountPrivilege");
        } // for(int i2 = 0; i2 < Accounts_i1_DatabasePrivileges__length; i2++) {
      } // if(Accounts_i1_DatabasePrivileges__length >= 0) {

      UnmarshallerString(Accounts_[i1].DBInstanceId_, response_map, "DescribeAccountsResponse.Accounts["+string_ValueOfInt(i1)+"].DBInstanceId");
      UnmarshallerString(Accounts_[i1].AccountName_, response_map, "DescribeAccountsResponse.Accounts["+string_ValueOfInt(i1)+"].AccountName");
      UnmarshallerString(Accounts_[i1].AccountStatus_, response_map, "DescribeAccountsResponse.Accounts["+string_ValueOfInt(i1)+"].AccountStatus");
      UnmarshallerString(Accounts_[i1].AccountDescription_, response_map, "DescribeAccountsResponse.Accounts["+string_ValueOfInt(i1)+"].AccountDescription");
    } // for(int i1 = 0; i1 < Accounts__length; i1++) {
  } // if(Accounts__length >= 0) {

}


} } // namespace aliyun { namespace Rds_Region {

// end of file 
